package com.sleep.psy.external_server.business.resourse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 量表资源
 * </p>
 *
 * @author wenliguo
 * @since 2025-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ResourseScale implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("量表名称")
    private String scaleName;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("获取全地址URL")
    private String url;

    @ApiModelProperty("来源标记（1-数据库 2-JSON文件3-自定义）")
    private Integer sourceFlag;

    @ApiModelProperty("量表内容详情")
    private String scaleDetails;

    @ApiModelProperty("状态（1-正常 0-不可用）")
    private Integer status;

    @ApiModelProperty("对应quest_main表cu_id")
    private Integer cuId;

    private String createTime;

    private String updateTime;

    @TableField(exist = false)
    @ApiModelProperty("问题和答案")
    private List<QuestMain> questMainList;


}
